package cn.cy.domain.DAO;

import cn.cy.domain.Point;
import org.springframework.stereotype.Repository;

import java.util.HashMap;

/**
 * @Author: Xucranger
 * @Date: 22/5/1 16:51
 */

@Repository
public class Semester2step {
    private static HashMap<String, Point> map = new HashMap<String, Point>();
    static{
        map.put("第一学年第一学期",new Point(2,1));
        map.put("第一学年第二学期",new Point(1,1));
        map.put("第二学年第一学期",new Point(2,2));
        map.put("第二学年第二学期",new Point(1,2));
        map.put("第三学年第一学期",new Point(2,3));
        map.put("第三学年第二学期",new Point(1,3));
        map.put("第四学年第一学期",new Point(2,4));
        map.put("第四学年第二学期",new Point(1,4));
        map.put("第五学年第一学期",new Point(2,5));
        map.put("第五学年第二学期",new Point(1,5));
        map.put("第六学年第一学期",new Point(2,6));
        map.put("第六学年第二学期",new Point(1,6));
    }
    public Point getByKey(String semester){
        Point point = new Point();
        point = map.get(semester);
        return point;
    }
}
